package com.slingshot.identitylibrary.viewmodel

import com.slingshot.identitylibrary.data.Repository
import io.reactivex.Observable

internal class ViewModel {

    private lateinit var repository: Repository

    init {
        init()
    }

    private fun init() {
        repository = Repository()
    }

    fun extractIdCardFace(
        appId: String,
        appSecret: String,
        imageBase64: String
    ): Observable<String> {
        return repository.extractIdCardFace(appId, appSecret, imageBase64)
    }

    fun extractIdCardNationalEmblem(
        appId: String,
        appSecret: String,
        imageBase64: String
    ): Observable<String> {
        return repository.extractIdCardNationalEmblem(appId, appSecret, imageBase64)
    }

    fun faceDetect(
        appId: String,
        appSecret: String,
        imageBase64: String,
        imageBase64_ID: String
    ): Observable<String> {
        return repository.faceDetect(appId, appSecret, imageBase64, imageBase64_ID)
    }

    fun faceDetect(appId: String, appSecret: String, imageBase64: String): Observable<String> {
        return repository.faceDetect(appId, appSecret, imageBase64)
    }
}